package chenji.gunapi.pluginmessage.event;

import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;

import chenji.gunapi.pluginmessage.InGunAPIPackage;

public class GunAPIPackageReceiveEvent implements Cancellable {
	private boolean isCancelled;
	private final InGunAPIPackage e;

	public GunAPIPackageReceiveEvent(InGunAPIPackage e) {
		this.e = e;
	}

	public Player getPlayer() {
		return this.getPackage().getPlayer();
	}

	public InGunAPIPackage getPackage() {
		return this.e;
	}

	@Override
	public boolean isCancelled() {
		return this.isCancelled;
	}

	@Override
	public void setCancelled(boolean arg0) {
		this.isCancelled = arg0;
	}

}
